<template>
<div class="header">
  {{types}}
</div>
</template>

<script>
import {mapState} from 'vuex'
export default {
  name: 'TheHeader',
  data () {
    return {
      name: '游客'
    }
  },
  computed:{
    ...mapState(['types'])
  }
}
</script>

<style scoped lang="scss">
.header{
  height: 100%;
  width: 100%;
  text-align:center;
  font-size:18px;
  .el-dropdown {
    float: right;
    margin-right: 50px;
    .el-button {
      padding: 2px 20px 2px 2px;  // 重置button的样式，去除本有的padding
      border-radius: 50px;
      color: #00B5FF;
      font-size: 14px;
      .avatar {
        width: 50px;
        height: 50px;
        margin-right: 6px;
        border-radius: 40px;
        vertical-align: middle
      }
    }
  }
}
</style>
